Skip to content

Filters: Show/hide internal label based on variable label#1412

Open
mdvictor wants to merge 5 commits intomainfrom
mdv/prefix-filters-label
Open

Filters: Show/hide internal label based on variable label#1412
mdvictor wants to merge 5 commits intomainfrom
mdv/prefix-filters-label

Conversation

@mdvictor
Copy link
Copy Markdown
Collaborator

@mdvictor mdvictor commented Mar 31, 2026

Shows/hides a Filters: label inside the filters bar if the variable one is hidden.

📦 Published PR as canary version: 7.3.6--canary.1412.23904058991.0

✨ Test out this PR locally via:

npm install @grafana/scenes@7.3.6--canary.1412.23904058991.0
npm install @grafana/scenes-react@7.3.6--canary.1412.23904058991.0
# or 
yarn add @grafana/scenes@7.3.6--canary.1412.23904058991.0
yarn add @grafana/scenes-react@7.3.6--canary.1412.23904058991.0

@mdvictor mdvictor added patch Increment the patch version when merged release Create a release when this pr is merged labels Mar 31, 2026

{enableGroupBy && hideLabel && (
<span className={styles.filtersLabel}>
{t('grafana-scenes.variables.adhoc-filters-combobox-renderer.filters-label', 'Filters:')}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we pick up variable name first and default to Filter?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged release Create a release when this pr is merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants